<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="format-detection" content="telephone=yes" />
    <meta name="format-detection" content="email=yes" />
    <meta name="format-detection" content="address=yes" />
    <link href="miniui3.5/themes/default/miniui.css" rel="stylesheet" type="text/css" />
    <link href="css/report.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="js/common.js" type="text/javascript"></script>
    <script src="Highcharts-4.1.9/js/highcharts.js" type="text/javascript"></script>
    <script src="Highcharts-4.1.9/js/modules/exporting.js" type="text/javascript"></script>
    <script src="miniui3.5/miniui.js" type="text/javascript"></script>
    <script src="js/report.js" type="text/javascript"></script>
    <style type= text/css >
        svg > text{
            display:none;
        }
    </style>
</head>
<body id="body" style="width:100%;height:100%;background: #fafafa;" >
<div style="width:100%;min-width:400px;" id="reportViwe" ></div>
<script type="text/javascript">
    try{
        loadForm(getQueryString("id"))
    }catch (e){
    }
    var reportName;
    var reportId;
    var columnList;
    var dataList;
    var total;
    var pageSize;
    var displayType;
    function loadForm(id) {
        requestServlet("getReportDetail",{id:id},function(rs){
             reportName = rs.reportName;
             reportId = rs.reportId;
             columnList = rs.columnList;
             dataList = rs.dataList;
             total = rs.totalCount;
             pageSize = rs.batchSize;
            displayType = rs.displayType;
            if(displayType==0){
                addReportGrid();
                $("#reportViwe").height($(window).height());
            }else{
                $("#reportViwe").height($(window).height());
                addReportChar();
            }
            window.parent.postMessage('{"type":"removeLoading","reportId":"'+reportId+'"}','*');
        },function(msg){});
    }
</script>


</body>

</html>
